version: '2'
services:
  eurekaserver1:
    image: amosgavin/eurekacluster:0.0.1

    ports:
      - "8901:8900"
    environment:
      - spring.profiles.active=eurekaService1

  eurekaserver2:
    image: amosgavin/eurekacluster:0.0.1

    #hostname: eurekaserver2
    ports:
      - "8902:8900"
    environment:
      - spring.profiles.active=eurekaService2

  eurekaserver3:
    image: amosgavin/eurekacluster:0.0.1

    #hostname: eurekaserver3
    ports:
      - "8903:8900"
    environment:
      - spring.profiles.active=eurekaService3
